package top.korori.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 短视频前台用户
 *
 * @author korori
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sv_user")
@ApiModel(value = "SvUser对象", description = "短视频前台用户")
public class SvUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("性别（0 男 1 女 2 保密）")
    private Integer sex;

    @ApiModelProperty("出生日期")
    private LocalDate birthday;

    @ApiModelProperty("简介")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("所在地关联地址id")
    private String localId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("ip")
    private String ip;

    @ApiModelProperty("ip省份")
    private String ipProvince;

    @ApiModelProperty("状态（0 正常 1 封禁）")
    private Integer status;

    @ApiModelProperty("是否删除")
    private Integer isDel;


}
